package com.example.demo.service.Impl;

import com.example.demo.dao.GoodsMapper;
import com.example.demo.pojo.Goods;
import com.example.demo.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServiceImpl implements GoodsService {
    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public List<Goods> query() {
        return goodsMapper.query();
    }

    @Override
    public Goods findById(Integer id) {
        return goodsMapper.findById(id);
    }
}
